
#ifndef CONF_H
#define CONF_H
#include "common.h"

typedef struct {
	struct {
		char *debug;
		char *error;
		char *warn;
		char *access;
		char *conf;
	}log;

	struct {
		int debug_mode; /* 0 */
		int debug_level;   /* 1 */
		unsigned short port;
		struct in_addr bind_addr4;
		int worker;
		long long max_size_in_shm;
		long long max_size_in_mem;
		int max_object_size_in_mem;
		long long objects;
	}server;

	struct {
		time_t client_life;
		time_t server_life;
		time_t request;
		time_t reply;
		time_t connect;
	}timeout;
	
	array *cache_dir;
}config_t;

extern void config_default(void);
extern void parse_conf(void);
#endif
